﻿// Copyright © 2022 By HeBianGu(QQ:908293466) https://github.com/HeBianGu/WPF-ControlBase

using HeBianGu.Service.TypeConverter;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace HeBianGu.Control.Filter
{
    [TypeConverter(typeof(DisplayEnumConverter))]
    public enum FilterOperate
    {
        [Display(GroupName = "String", Name = "选择数据源")]
        SelectSource = 0,
        [Display(GroupName = "String,Double,Int,DateTime", Name = "等于")]
        Equals,
        [Display(GroupName = "String,Double,Int,DateTime", Name = "不等于")]
        UnEquals,
        [Display(GroupName = "String", Name = "包含")]
        Contain,
        [Display(GroupName = "String", Name = "不包含")]
        UnContain,
        [Display(GroupName = "String", Name = "已设置")]
        Setted,
        [Display(GroupName = "String", Name = "未设置")]
        Unset,
        [Display(GroupName = "Double,Int,DateTime", Name = "大于")]
        Greater,
        [Display(GroupName = "Double,Int,DateTime", Name = "小于")]
        Less,
        [Display(GroupName = "Double,Int,DateTime", Name = "大于等于")]
        GreaterAndEqual,
        [Display(GroupName = "Double,Int,DateTime", Name = "小于等于")]
        LessAndEqual
    }
}
